package com.gugee.tiktok.web.dto;
import com.gugee.tiktok.web.model.mysql.DicLanguage;
import lombok.Data;
import org.mapstruct.Mapper;

import java.util.List;

@Data
public class LanguageResponse {
    private String code;
    private String name;

    @Mapper(componentModel = "spring")
    public interface BloggerMapper {
        LanguageResponse mapper(DicLanguage dto);
        List<LanguageResponse> mapper(List<DicLanguage> dto);
    }
}
